package com.tiger.project.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tiger.project.mapper.PayInfoMapper;
import com.tiger.project.domain.PayInfo;
import com.tiger.project.service.IPayInfoService;

/**
 * 缴款/到账 记录Service业务层处理
 *
 * @author standard
 * @date 2022-12-08
 */
@Service
public class PayInfoServiceImpl implements IPayInfoService {

    @Autowired
    private PayInfoMapper payInfoMapper;

    /**
     * 查询缴款/到账 记录
     *
     * @param id 缴款/到账 记录主键
     * @return 缴款/到账 记录
     */
    @Override
    public PayInfo selectPayInfoById(Long id) {
        return payInfoMapper.selectPayInfoById(id);
    }

    /**
     * 查询缴款/到账 记录列表
     *
     * @param payInfo 缴款/到账 记录
     * @return 缴款/到账 记录
     */
    @Override
    public List<PayInfo> selectPayInfoList(PayInfo payInfo) {
        return payInfoMapper.selectPayInfoList(payInfo);
    }

    /**
     * 新增缴款/到账 记录
     *
     * @param payInfo 缴款/到账 记录
     * @return 结果
     */
    @Override
    public int insertPayInfo(PayInfo payInfo) {
        return payInfoMapper.insertPayInfo(payInfo);
    }

    /**
     * 修改缴款/到账 记录
     *
     * @param payInfo 缴款/到账 记录
     * @return 结果
     */
    @Override
    public int updatePayInfo(PayInfo payInfo) {
        return payInfoMapper.updatePayInfo(payInfo);
    }

    /**
     * 批量删除缴款/到账 记录
     *
     * @param ids 需要删除的缴款/到账 记录主键
     * @return 结果
     */
    @Override
    public int deletePayInfoByIds(Long[] ids) {
        return payInfoMapper.deletePayInfoByIds(ids);
    }

    /**
     * 删除缴款/到账 记录信息
     *
     * @param id 缴款/到账 记录主键
     * @return 结果
     */
    @Override
    public int deletePayInfoById(Long id) {
        return payInfoMapper.deletePayInfoById(id);
    }

}
